package com.lanyam.travel.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lanyam.travel.base.entity.excelEntity.TravelOrderDetailsForExcel;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * 版权所有： 稻草人
 * 创建者： wenhe
 * 创建时间: 2020-02-23
 * 描述：
 * 其它：
 **/
public interface IExcelService {

    /**
     * 导出酒店商品
     * @param response
     * @throws Exception
     */
    void exportHotelGoods(HttpServletResponse response, Map map) throws Exception;

    /**
     * 导出门票商品
     * @param response
     * @throws Exception
     */
    void exportTicketGoods(HttpServletResponse response, Map map) throws Exception;

    /**
     * 导出线路商品
     * @param response
     * @throws Exception
     */
    void exportLineGoods(HttpServletResponse response, Map map) throws Exception;

    /**
     * 查询与excel对应的分页数据
     * @param queryMap
     * @param page
     * @param size
     * @return
     */
    IPage<TravelOrderDetailsForExcel> getExcelPage(Map queryMap, Integer page, Integer size);
}
